﻿using EONFULLSIN2.Models.Entity.Base;
using EONFULLSIN2.Models.Enum;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EONFULLSIN2.Models.Entity.Device {

    /// <summary>
    /// 设备运行记录
    /// </summary>
    [Table(Name = "device_run_rec")]
    public class DeviceRunRecord : EntityBase {

        /// <summary>
        /// 传感器编号
        /// </summary>
        public string CodeNumber { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 传感器类型
        /// </summary>
        [Column(MapType = typeof(int))]
        public eSensorTypeEnum Type { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

    }

}
